package com.java83.dto.impl;

import com.java83.dto.BaseDto;

/**
 * @ClassName TwoDto
 * @author ytg
 * @version 1.0.0
 * @Description 带两个对象
 * @createTime 2021年12月14日 15:36:00
 */
public class TwoDto<T,K> extends BaseDto {

    private T data1;
    private K data2;

    public TwoDto() {
    }

    public TwoDto(int page, int limit, T data1, K data2) {
        super(page, limit);
        this.data1 = data1;
        this.data2 = data2;
    }

    public T getData1() {
        return data1;
    }

    public void setData1(T data1) {
        this.data1 = data1;
    }

    public K getData2() {
        return data2;
    }

    public void setData2(K data2) {
        this.data2 = data2;
    }

    @Override
    public String toString() {
        return "TwoDto{" +
                "page=" + page +
                ", limit=" + limit +
                ", data1=" + data1 +
                ", data2=" + data2 +
                '}';
    }
}
